﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bepo.Model.Setup.Tasks
{
    public class _20120605_DropElmah : DatabaseSetupTask
    {
        public override DateTime DevelopedOn
        {
            get { return new DateTime (2012, 06, 05); }
        }

        public override string Script
        {
            get { return @"
            if( object_id('ELMAH_Error') is not null) DROP TABLE ELMAH_Error
            go
            if( object_id('ELMAH_GetErrorsXml') is not null) DROP procedure dbo.ELMAH_GetErrorsXml
            go
            if( object_id('ELMAH_GetErrorXml') is not null) DROP procedure dbo.ELMAH_GetErrorXml
            go
            if( object_id('ELMAH_LogError') is not null)  DROP procedure dbo.ELMAH_LogError
            go
        ";
            }
        }
    }
}
